/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo06;

/**
 *
 * @author Administrator
 */
public class person {

    private String name;
    private String telphone;
    private String address;

    public person(String name, String telphone, String address) {
        this.name = name;
        this.telphone = telphone;
        this.address = address;
    }

    private person() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public class p1 {

        public static void main(String[] args) {




            person p1 = new person() ;
          

            p1.setName("张三");
            p1.setAddress("南宁");
            p1.setTelphone("110");
            System.out.println("名字是：" + p1.getName());
            System.out.println("地址是：" + p1.getAddress());
            System.out.println("电话是：" + p1.getTelphone());
        }
    }
}